'''
Created on 2010/10/31

@author: yukiyonezawa
'''
from pyrfid.Util.Util import Util

class AFI(object):
    
    __application_family_id = ""
    __application_subfamily_id = ""
    
    
    def __init__(self, application_family_id, application_subfamily_id):
        """
        int application_family_id
        int application_subfamily_id
        """
        self.__application_family_id = Util.convertIntToHex(application_family_id, 1)
        self.__application_subfamily_id = Util.convertIntToHex(application_subfamily_id, 1)
    
    def getAFIonHex(self):
        return self.__application_family_id + self.__application_subfamily_id
    
    def setAFI(self, AFI_on_memory):
        pass
    